package com.qs.springboot.controller;

import com.qs.springboot.model.User;
import com.qs.springboot.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping(value = "/")
public class TestController {

    @Resource
    private UserService userService;

    @GetMapping(value = "/hello")
    public User hello(){
        return userService.getUserById("11111");
    }
}
